import { ILoginAccount } from './type'
import ccRequest from '@/service'
import { ResponseType } from '@/global/type'

function accountLoginRequest(param: ILoginAccount): Promise<ResponseType> {
  return ccRequest.post<ResponseType>({
    url: '/login/in',
    data: param
  })
}

function getUserMenu(): Promise<ResponseType> {
  return ccRequest.get<ResponseType>({
    url: '/vue3menu/menus'
  })
}

export { accountLoginRequest, getUserMenu }
